package com.github.thinwonton.springboot.showcase.poi.easypoi.entity;

import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;

import javax.validation.Valid;

/**
 * CompositeExcelVO
 *
 * @author hugo
 * @date 2018/9/19
 */
public class CompositeExcelVO implements IExcelModel, IExcelDataModel {
    @Valid
    @ExcelEntity
    private Course course;

    @Valid
    @ExcelEntity
    private Student student;

    private String errorMsg;

    private int rowNum;

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    public int getRowNum() {
        return this.rowNum;
    }

    @Override
    public void setRowNum(int rowNum) {
        this.rowNum = rowNum;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }

    @Override
    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
